일급 시민, First-class citizen이란 대체 무엇인가?

2023년 05월 17일

wiki

# 일급 시민# First-class citizen# Second-class citizen

개요

일급 시민(first-class citizen)이라는 개념은 영국의 컴퓨터 과학자인 Christopher Strachey가 1960년도에 처음 사용한 용어입니다. 이 용어를 도입한 이유는 실수(real number)와 프로시저(procedure)를 구분하기 위해서 였는데요,

일급 시민의 정의

위키피디아에서 발췌하자면, 일급 시민의 정의는 다음과 같습니다.

In programming language design, a first-class citizen (also type, object, entity, or value) in a given programming language is an entity which supports all the operations generally available to other entities. These operations typically include being passed as an argument, returned from a function, and assigned to a variable. - 위키피디아

요약하자면 일급 시민은 일반적으로 다른 엔티티에서 사용할 수 있는 모든 연산을 지원하는 엔티티라고 할 수 있습니다.

주요 언어에서의 일급 시민 사례

파이썬

자바

자바스크립트

참고자료

© 2025, 미나리와 함께 만들었음